home *** CD-ROM | disk | FTP | other *** search
/ Enigma Amiga Life 109 / EnigmaAmiga109CD.iso / dalla rivista / amiga.free / sorgenti vari / wolf3dmacsource.sit / Wolf3DMacSource / Burger.h < prev    next >
Text File  |  2000-01-21  |  3KB  |  103 lines

  1. typedef unsigned int Word;
  2. typedef unsigned long LongWord;
  3. #ifndef __MACTYPES__
  4. typedef unsigned char Byte;
  5. typedef unsigned char Boolean;
  6. #endif
  7.  
  8. #define BLACK 255
  9. #define DARKGREY 250
  10. #define BROWN 101
  11. #define PURPLE 133
  12. #define BLUE 210
  13. #define DARKGREEN 229
  14. #define ORANGE 23
  15. #define RED 216
  16. #define BEIGE 14
  17. #define YELLOW 5
  18. #define GREEN 225
  19. #define LIGHTBLUE 150
  20. #define LILAC 48
  21. #define PERIWINKLE 120
  22. #define LIGHTGREY 43
  23. #define WHITE 0
  24.  
  25. #define __MAC__
  26. #define __BIGENDIAN__
  27. #define SfxActive 1
  28. #define MusicActive 2
  29.  
  30. #define VideoSize 64000
  31. #define SetAuxType(x,y)
  32. #define SetFileType(x,y)
  33.  
  34. extern unsigned char *VideoPointer;
  35. extern Word KeyModifiers;
  36. extern Word ScanCode;
  37. extern Word KilledSong;
  38. extern Word SystemState;
  39. extern Word VideoWidth;
  40. extern LongWord LastTick;
  41. extern LongWord YTable[480];
  42. extern Handle RezHandle;
  43.  
  44. void DLZSS(Byte *Dest, Byte *Src,LongWord Length);
  45. void DLZB(Byte *Dest, Byte *Src,LongWord Length);
  46. LongWord SwapLong(LongWord Val);
  47. unsigned short SwapUShort(unsigned short Val);
  48. short SwapShort(short Val);
  49.  
  50. void WaitTick(void);
  51. void WaitTicks(Word TickCount);
  52. Word WaitTicksEvent(Word TickCount);
  53. Word WaitEvent(void);
  54. LongWord ReadTick(void);
  55. void *AllocSomeMem(LongWord Size);
  56. void FreeSomeMem(void *MemPtr);
  57.  
  58. Word GetAKey(void);
  59. Word AllKeysUp(void);
  60. Word WaitKey(void);
  61. void FlushKeys(void);
  62. Word FixMacKey(EventRecord *MyRecord);
  63.  
  64. void SoundOff(void);
  65. void PlaySound(Word SndNum);
  66. void StopSound(Word SndNum);
  67. void PlaySong(Word SongNum);
  68.  
  69. void ClearTheScreen(Word Color);
  70. void ShowPic(Word PicNum);
  71.  
  72. void InitYTable(void);
  73. void InstallAFont(Word FontNum);
  74. void FontUseMask(void);
  75. void FontUseZero(void);
  76. void SetFontXY(Word x,Word y);
  77. void FontSetColor(Word Index,Word Color);
  78. void DrawAString(char *TextPtr);
  79. void DrawAChar(Word Letter);
  80. void ultoa(LongWord Val,char *TextPtr);
  81. Word GetRandom(Word Range);
  82. void Randomize(void);
  83. void DrawShape(Word x,Word y,void *ShapePtr);
  84. void DrawXMShape(Word x,Word y,void *ShapePtr);
  85. void DrawMShape(Word x,Word y,void *ShapePtr);
  86. void EraseMBShape(Word x,Word y, void *ShapePtr,void *BackPtr);
  87. Word TestMShape(Word x,Word y,void *ShapePtr);
  88. Word TestMBShape(Word x,Word y,void *ShapePtr,void *BackPtr);
  89.  
  90. void SetAPalette(Word PalNum);
  91. void SetAPalettePtr(unsigned char *PalPtr);
  92. void FadeTo(Word PalNum);
  93. void FadeToBlack(void);
  94. void FadeToPtr(unsigned char *PalPtr);
  95.  
  96. void *LoadAResource(Word RezNum);
  97. void ReleaseAResource(Word RezNum);
  98. void KillAResource(Word RezNum);
  99. void *LoadAResource2(Word RezNum,LongWord Type);
  100. void ReleaseAResource2(Word RezNum,LongWord Type);
  101. void KillAResource2(Word RezNum,LongWord Type);
  102. void SaveJunk(void *AckPtr,Word Length);
  103.